#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, p, q;
  cin >> a >> b >> p >> q;
  if (a > p) {
    swap(a, p);
    swap(b, p);
  }

  if (p > b) {
    cout << "Disjoint";
  } else if (q > b) {
    cout << "Overlap";
  } else {
    cout << "Nested";
  }

  return 0;
}